package com.carkeeper.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carkeeper.pojo.ServiceSubtypePO;

import java.util.List;

public interface ServiceSubTypeService{
    /*
    * 获取2级分类分页数据
    **/
    Page<ServiceSubtypePO> queryPage(Long parentId, Long page, Long pageSize, String code, String name);

    /*
     * 获取2级分类详情
     * */
    ServiceSubtypePO query(long id);

    /*
    * 新增服务2级分类
    * */
    void add(ServiceSubtypePO serviceSubtypePO);

    /*
    * 更新服务2级分类
    * */
    void update(long id, ServiceSubtypePO serviceSubtypePO);

    /*
    *删除服务2级分类
    * */
    void delete(long serviceSubtypeById);

    /**
     * 获取二级分类列表
     * @return 二级分类列表
     */
    List<ServiceSubtypePO> findAll();

}
